<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>发送json数据</title>
    <script src="${pageContext.request.contextPath}/js/jquery-3.3.1.min.js"></script>
<%--    <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.3.1.min.js"></script>--%>
    <script>
        // var userList=new Array();
        // userList.push({id:4,name:"zhangsan",address:"beijing"})




        // 发送ajax请求
        $.ajax({
            type:"GET",
            url:"${pageContext.request.contextPath}/save00?id=1",
            // data:1,
            contentType:"application/json;charset=utf-8",
            success:function (data){
                console.log(data)
        }
        });

    </script>

</head>
<body>

</body>
</html>
